﻿@model DataMongo.Entities.LoginModel

@{
    ViewBag.Title = "Log in";
    Layout = "~/Views/Shared/_LayoutLoginRegister.cshtml";
}


<body class="login">

    <div class="wrapper">
        <h1><a id="brand" href="index.html">Breaking Hub</a></h1>
        <div class="login-body" style="height: 380px">
            <h2>SIGN IN</h2>

            @using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post))
            {

                @Html.AntiForgeryToken()
                @Html.ValidationSummary(true)
                @Html.HiddenFor(x => x.Provider)

                <div class="control-group">
                    <div class="email controls">
                        @Html.TextBoxFor(m => m.UserName, new { @class = "input-block-level", placeholder = "Email Address" })
                        @Html.ValidationMessageFor(m => m.UserName)
                    </div>
                </div>
                <div class="control-group">
                    <div class="pw controls">
                        @Html.PasswordFor(m => m.Password, new { @class = "input-block-level", placeholder = "Password" })
                        @Html.ValidationMessageFor(m => m.Password)

                    </div>
                </div>
                <div class="submit">
                        @if (string.IsNullOrEmpty(Model.Provider))
                        {
                            <div class="remember">
                                <div class="icheckbox_square-blue" style="position: relative;"><input type="checkbox" id="remember" data-color="blue" data-skin="square" class="icheck-me" name="RememberMe" style="position: absolute; top: -10%; left: -10%; display: block; width: 120%; height: 120%; margin: 0px; padding: 0px; background: none repeat scroll 0% 0% rgb(255, 255, 255); border: 0px none; opacity: 0;"><ins style="position: absolute; top: -10%; left: -10%; display: block; width: 120%; height: 120%; margin: 0px; padding: 0px; background: none repeat scroll 0% 0% rgb(255, 255, 255); border: 0px none; opacity: 0;"></ins></div> <label for="remember">Remember me</label>
                            </div>
                        }
                        <input type="submit" class="btn btn-primary" value="Log In">
                        <div class="clearfix"></div>
                        <div style="padding-top: 20px; text-align: center;">
                            <span>Log in using another service</span>
                            <p>
                                <a href="@Url.Action("Login","Account", new{provider="google"})">
                                    <img src="~/Content/Images/Gmail_logo.png" />

                                </a>
                            </p>

                        </div>

                    </div>
            }



            <div class="forget">
                <a href="#"><span>Forgot password?</span></a>
            </div>
        </div>
    </div>
</body>

@*<div class="block-content">
    <div id="writecomment">
        @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
        {





            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)
            @Html.HiddenFor(x=>x.Provider)





            <p class="contact-form-user">
                @Html.LabelFor(m => m.UserName,new{placeholder="Email Address"})
                @Html.EditorFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)

            </p>
            <p class="contact-form-user">
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </p>
            if (string.IsNullOrEmpty(Model.Provider)) {
                <p class="contact-form-user">
                    @Html.CheckBoxFor(m => m.RememberMe)
                    @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
                </p>
            }
            <input type="submit" value="Log in" />

        }

        @*<div class="clear-fix">
            <br/><br />

            <p>
                <b>Log in using another service</b>
            </p>

            <p>
            <a href="@Url.Action("Login","Account", new{provider="google"})">
                <img src="~/Content/Images/Gmail_logo.png" />

            </a>
                <a href="javascript:void(0) " onclick="yahooclick();">

                    <img src="~/Content/Images/yahoo_mail_icon.png" />

                </a>
                <a href="javascript:void(0) " onclick="hotmailclick();">

                    <img src="~/Content/Images/wave4hotmail.png" />

                </a>


    @*<a href="@Url.Action("Login","Account", new{provider="google"})">
        <img src="~/Content/Images/wave4hotmail.png" />

    </a>

        </div>*@
@*</div>

    </div>*@
@*<script type="text/javascript">
        function yahooclick() {

            $.ajax({
                type: "GET",
                url:"@Url.Action("YahooAPI","Contact")",
                contentType: "application/json",
                success: function (data) {
                    // Replace the div's content with the page method's return.
                    window.location = data;
                }
            });
        }
        function hotmailclick() {

            $.ajax({
                type: "GET",
                url:"@Url.Action("GetHotmailContacts", "Contact")",
                contentType: "application/json",
                success: function (data) {
                    // Replace the div's content with the page method's return.
                    window.location = data;
                }
            });
        }
    </script>*@
